//package com.jida.tijian.exception;
//
/// **
// * 软件使用手册
// */
//public enum TijianAPPExceptionEnum {
//
//    PHONE_NOT_REGISTER(2000, "该手机号尚未注册"),
//    PASSWORD_IS_WRONG(2001, "密码错误"),
//    //    这是为了遮掩 低端异常做的话术给前端
//    SYSTEM_ERROR(2002, "系统异常"),
//
//    ALREADY_APPOINTMENT_CURRENTDAY(2003, "您当天已有预约"),
//    USER_LOGIN_TIMEOUT(2004, "用户登录已超时"),
//    NOT_LOGIN(2005, "请先登录");
//
//    private TijianAPPExceptionEnum(Integer code, String message) {
//        this.code = code;
//        this.message = message;
//    }
//
//    private Integer code;
//    private String message;
//
//    public Integer getCode() {
//        return code;
//    }
//
//    public void setCode(Integer code) {
//        this.code = code;
//    }
//
//    public String getMessage() {
//        return message;
//    }
//
//    public void setMessage(String message) {
//        this.message = message;
//    }
//}


package com.jida.tijian.exception;

/**
 * 软件使用手册
 */
public enum TijianAPPExceptionEnum {

    PHONE_NOT_REGISTER(1000, "该手机号尚未注册"),
    PASSWORD_IS_WRONG(1001, "密码错误"),
    SYSTEM_ERROR(1002, "系统异常"),
    ALREADY_APPOINTMENT_CURRENTDAY(1003, "您当天已有预约"),
    USER_LOGIN_TIMEOUT(1004, "用户登录已超时"),
    NOT_LOGIN(1005, "请先登录");

    private TijianAPPExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}